package com.information.manage.model.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@ApiModel("分页")
public class ManuQuery {

    @ApiModelProperty(value = "当前页", required = true)
    private Integer curPage;

    @ApiModelProperty(value = "每页条数", required = true)
    private Integer pageSize;

    @ApiModelProperty("标题模糊匹配")
    private String title;

    @ApiModelProperty("删除状态  0未删除  1已删除")
    private Integer deleteData;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

//    @ApiModelProperty("只查询某个用户的")
//    private Integer userId;

    @ApiModelProperty("只查询某个部门的")
    private Integer departmentId;

    @ApiModelProperty("审核状态(0:审核中,1:审核通过,2:审核不通过)")
    private Integer auditStatus;

}
